package com.lanhe.apply.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanhe.apply.domain.LhQingchuangApplyLog;
import com.lanhe.apply.mapper.LhQingchuangApplyLogMapper;
import com.lanhe.apply.service.ILhQingchuangApplyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * (LhQingchuangApplyLog)表服务实现类
 *
 * @author zhanggl
 * @since 2023-12-15 19:25:09
 */
@Service
public class LhQingchuangApplyLogServiceImpl extends ServiceImpl<LhQingchuangApplyLogMapper, LhQingchuangApplyLog> implements ILhQingchuangApplyLogService {

	@Autowired
	private LhQingchuangApplyLogMapper applyCallbackLogMapper;

	/**
	 * 新增回掉日志
	 *
	 * @param applyCallbackLog DTO
	 * @return com.lanhe.apply.domain.LhQingchuangApplyLog
	 * @author zhanggl
	 * @date 2023/12/15
	 */
	@Override
	public LhQingchuangApplyLog insertApplyCallbackLog(LhQingchuangApplyLog applyCallbackLog) {

		applyCallbackLog.setCreateTime(new Date());
		applyCallbackLogMapper.insert(applyCallbackLog);
		return applyCallbackLog;
	}
}

